import request from '~/utils/request'
export default {
  // 2.根据id查询课程详情
  getCourse(courseId) {
    return request({
      url: `/api/edu/course/get/${courseId}`,
      method: 'get'
    })
  },
  // 1.查询所有课程
  getCourseList(webCourseQuery) {
    return request({
      url: '/api/edu/course/list',
      method: 'get',
      params: webCourseQuery
    })
  }
}
